<!DOCTYPE html>

















































<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="description" content="Javadoc API documentation." />

<link rel="shortcut icon" type="image/x-icon" href="../../../../favicon.ico" />
<title>

  KSYMediaPlayer


</title>
<link href="../../../../../assets/doclava-developer-docs.css" rel="stylesheet" type="text/css" />
<link href="../../../../../assets/customizations.css" rel="stylesheet" type="text/css" />
<script src="../../../../../assets/search_autocomplete.js" type="text/javascript"></script>
<script src="../../../../../assets/jquery-resizable.min.js" type="text/javascript"></script>
<script src="../../../../../assets/doclava-developer-docs.js" type="text/javascript"></script>
<script src="../../../../../assets/prettify.js" type="text/javascript"></script>
<script type="text/javascript">
  setToRoot("../../../../", "../../../../../assets/");
</script>
<script src="../../../../../assets/doclava-developer-reference.js" type="text/javascript"></script>
<script src="../../../../../assets/navtree_data.js" type="text/javascript"></script>
<script src="../../../../../assets/customizations.js" type="text/javascript"></script>
<noscript>
  <style type="text/css">
    html,body{overflow:auto;}
    #body-content{position:relative; top:0;}
    #doc-content{overflow:visible;border-left:3px solid #666;}
    #side-nav{padding:0;}
    #side-nav .toggle-list ul {display:block;}
    #resize-packages-nav{border-bottom:3px solid #666;}
  </style>
</noscript>
</head>

<body class="">

<div id="header">
    <div id="headerLeft">
    
    </div>
    <div id="headerRight">
      
  <div id="search" >
      <div id="searchForm">
          <form accept-charset="utf-8" class="gsc-search-box" 
                onsubmit="return submit_search()">
            <table class="gsc-search-box" cellpadding="0" cellspacing="0"><tbody>
                <tr>
                  <td class="gsc-input">
                    <input id="search_autocomplete" class="gsc-input" type="text" size="33" autocomplete="off"
                      title="search developer docs" name="q"
                      value="search developer docs"
                      onFocus="search_focus_changed(this, true)"
                      onBlur="search_focus_changed(this, false)"
                      onkeydown="return search_changed(event, true, '../../../../')"
                      onkeyup="return search_changed(event, false, '../../../../')" />
                  <div id="search_filtered_div" class="no-display">
                      <table id="search_filtered" cellspacing=0>
                      </table>
                  </div>
                  </td>
                  <td class="gsc-search-button">
                    <input type="submit" value="Search" title="search" id="search-button" class="gsc-search-button" />
                  </td>
                  <td class="gsc-clear-button">
                    <div title="clear results" class="gsc-clear-button">&nbsp;</div>
                  </td>
                </tr></tbody>
              </table>
          </form>
      </div><!-- searchForm -->
  </div><!-- search -->
      
    </div>
</div><!-- header -->


  <div class="g-section g-tpl-240" id="body-content">
    <div class="g-unit g-first side-nav-resizable" id="side-nav">
      <div id="swapper">
        <div id="nav-panels">
          <div id="resize-packages-nav">
            <div id="packages-nav">
              <div id="index-links">
                <a href="../../../../packages.html"  >Package Index</a> | 
                <a href="../../../../classes.html" >Class Index</a>
              </div>
              <ul>
                
    <li class="selected api apilevel-">
  <a href="../../../../com/ksyun/media/player/package-summary.html">com.ksyun.media.player</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/ksyun/media/player/detector/package-summary.html">com.ksyun.media.player.detector</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/ksyun/media/player/misc/package-summary.html">com.ksyun.media.player.misc</a></li>
    <li class="api apilevel-">
  <a href="../../../../com/ksyun/media/player/recorder/package-summary.html">com.ksyun.media.player.recorder</a></li>
              </ul><br/>
            </div> <!-- end packages -->
          </div> <!-- end resize-packages -->
          <div id="classes-nav">
            <ul>
              
    <li><h2>Interfaces</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaController.html">IMediaController</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaController.MediaPlayerControl.html">IMediaController.MediaPlayerControl</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.html">IMediaPlayer</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnBufferingUpdateListener.html">IMediaPlayer.OnBufferingUpdateListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnCompletionListener.html">IMediaPlayer.OnCompletionListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnErrorListener.html">IMediaPlayer.OnErrorListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnInfoListener.html">IMediaPlayer.OnInfoListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnLogEventListener.html">IMediaPlayer.OnLogEventListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnMessageListener.html">IMediaPlayer.OnMessageListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnSeekCompleteListener.html">IMediaPlayer.OnSeekCompleteListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnTimedTextListener.html">IMediaPlayer.OnTimedTextListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnVideoSizeChangedListener.html">IMediaPlayer.OnVideoSizeChangedListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnAudioPCMListener.html">KSYMediaPlayer.OnAudioPCMListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoTextureListener.html">KSYMediaPlayer.OnVideoTextureListener</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYNetworkDetector.OnNetworkDetectionEventListener.html">KSYNetworkDetector.OnNetworkDetectionEventListener</a></li>
      </ul>
    </li>
              
    <li><h2>Classes</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYHardwareDecodeWhiteList.html">KSYHardwareDecodeWhiteList</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYLibraryManager.html">KSYLibraryManager</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaMeta.html">KSYMediaMeta</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaMeta.KSYStreamMeta.html">KSYMediaMeta.KSYStreamMeta</a></li>
          <li class="selected api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html">KSYMediaPlayer</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.Builder.html">KSYMediaPlayer.Builder</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaRecorder.html">KSYMediaRecorder</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYNetworkDetector.html">KSYNetworkDetector</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYTextureView.html">KSYTextureView</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYVideoView.html">KSYVideoView</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/MediaInfo.html">MediaInfo</a></li>
      </ul>
    </li>
              
              
    <li><h2>Enums</h2>
      <ul>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDecodeMode.html">KSYMediaPlayer.KSYDecodeMode</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDeinterlaceMode.html">KSYMediaPlayer.KSYDeinterlaceMode</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html">KSYMediaPlayer.KSYReloadMode</a></li>
          <li class="api apilevel-"><a href="../../../../com/ksyun/media/player/KSYNetworkDetector.KSYDetectorPacketType.html">KSYNetworkDetector.KSYDetectorPacketType</a></li>
      </ul>
    </li>
              
              
            </ul><br/>
          </div><!-- end classes -->
        </div><!-- end nav-panels -->
        <div id="nav-tree" style="display:none">
          <div id="index-links">
            <a href="../../../../packages.html"  >Package Index</a> | 
            <a href="../../../../classes.html" >Class Index</a>
          </div>
        </div><!-- end nav-tree -->
      </div><!-- end swapper -->
    </div> <!-- end side-nav -->
    <script>
      if (!isMobile) {
        $("<a href='#' id='nav-swap' onclick='swapNav();return false;' style='font-size:10px;line-height:9px;margin-left:1em;text-decoration:none;'><span id='tree-link'>Use Tree Navigation</span><span id='panel-link' style='display:none'>Use Panel Navigation</span></a>").appendTo("#side-nav");
        chooseDefaultNav();
        if ($("#nav-tree").is(':visible')) {
          init_default_navtree("../../../../");
        } else {
          addLoadEvent(function() {
            scrollIntoView("packages-nav");
            scrollIntoView("classes-nav");
          });
        }
        $("#swapper").css({borderBottom:"2px solid #aaa"});
      } else {
        swapNav(); // tree view should be used on mobile
      }
    </script>



<div class="g-unit" id="doc-content">

<div id="api-info-block">




<div class="sum-details-links">


</div><!-- end sum-details-links -->
<div class="api-level">
  


  
  

</div>
</div><!-- end api-info-block -->


<!-- ======== START OF CLASS DATA ======== -->

<div id="jd-header">
    public
     
    final 
    
    class
<h1>KSYMediaPlayer</h1>



  
  
  


</div><!-- end header -->

<div id="naMessage"></div>

<div id="jd-content" class="api apilevel-">
<table class="jd-inheritance-table">


    <tr>
         	
        <td colspan="1" class="jd-inheritance-class-cell">com.ksyun.media.player.KSYMediaPlayer</td>
    </tr>
    

</table>







<div class="jd-descr">


<h2>Class Overview</h2>
<p>播放SDK的核心类,实现播放视频的功能
</p>





</div><!-- jd-descr -->
















<div class="jd-descr">


<h2>Summary</h2>



<!-- ======== NESTED CLASS SUMMARY ======== -->
<table id="nestedclasses" class="jd-sumtable"><tr><th colspan="12">Nested Classes</th></tr>


  
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        class</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.Builder.html">KSYMediaPlayer.Builder</a></td>
      <td class="jd-descrcol" width="100%">创建KSYMediaPlayer所需的内部类
&nbsp;</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        enum</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDecodeMode.html">KSYMediaPlayer.KSYDecodeMode</a></td>
      <td class="jd-descrcol" width="100%">播放器解码类型&nbsp;</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        enum</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDeinterlaceMode.html">KSYMediaPlayer.KSYDeinterlaceMode</a></td>
      <td class="jd-descrcol" width="100%">反交错模式,该功能只在使用点播库时方可生效&nbsp;</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        enum</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html">KSYMediaPlayer.KSYReloadMode</a></td>
      <td class="jd-descrcol" width="100%">Reload模式&nbsp;</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        interface</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnAudioPCMListener.html">KSYMediaPlayer.OnAudioPCMListener</a></td>
      <td class="jd-descrcol" width="100%">&nbsp;</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        interface</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a></td>
      <td class="jd-descrcol" width="100%">原始视频数据的回调监听器
&nbsp;</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
      <td class="jd-typecol">
        
         
         
        
        interface</td>
      <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoTextureListener.html">KSYMediaPlayer.OnVideoTextureListener</a></td>
      <td class="jd-descrcol" width="100%">&nbsp;</td>
    </tr>
    
    

</table>












<!-- =========== ENUM CONSTANT SUMMARY =========== -->
<table id="constants" class="jd-sumtable"><tr><th colspan="12">Constants</th></tr>


    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_DEBUG">KSY_LOG_DEBUG</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_DEFAULT">KSY_LOG_DEFAULT</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_ERROR">KSY_LOG_ERROR</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_FATAL">KSY_LOG_FATAL</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_INFO">KSY_LOG_INFO</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_SILENT">KSY_LOG_SILENT</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_UNKNOWN">KSY_LOG_UNKNOWN</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_VERBOSE">KSY_LOG_VERBOSE</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#KSY_LOG_WARN">KSY_LOG_WARN</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#MEDIA_MESSAGE_INFO">MEDIA_MESSAGE_INFO</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#MEDIA_SET_VIDEO_SAR">MEDIA_SET_VIDEO_SAR</a></td>
        <td class="jd-descrcol" width="100%"></td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#SDL_FCC_RV16">SDL_FCC_RV16</a></td>
        <td class="jd-descrcol" width="100%">原始视频输出格式为RGB565
</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#SDL_FCC_RV32">SDL_FCC_RV32</a></td>
        <td class="jd-descrcol" width="100%">原始视频输出格式为RGB8888
</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_NOSCALE_TO_FIT">VIDEO_SCALING_MODE_NOSCALE_TO_FIT</a></td>
        <td class="jd-descrcol" width="100%">视频缩放模式,拉伸模式,视频完全填满显示窗口,视频与窗口比例不匹配画面会有变形<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</td>
    </tr>
    
    
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT">VIDEO_SCALING_MODE_SCALE_TO_FIT</a></td>
        <td class="jd-descrcol" width="100%">视频缩放模式,填充模式,在视频宽高比例与手机宽高比例不一致时,播放可能留有黑边,具体接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</td>
    </tr>
    
    
    <tr class=" api apilevel-" >
        <td class="jd-typecol">int</td>
        <td class="jd-linkcol"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING">VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING</a></td>
        <td class="jd-descrcol" width="100%">视频缩放模式,裁剪模式,具体接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</td>
    </tr>
    
    

</table>
















<!-- ========== METHOD SUMMARY =========== -->
<table id="pubmethods" class="jd-sumtable"><tr><th colspan="12">Public Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#_onAudioPCMReady(java.nio.ByteBuffer, long, int, int, int)">_onAudioPCMReady</a></span>(ByteBuffer buffer, long timestamp, int samplerate, int channels, int fmt)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#addTimedTextSource(java.lang.String)">addTimedTextSource</a></span>(String path)
        
        <div class="jd-descrdiv">设置外挂字幕的路径，播放器会打开并解码外挂字幕</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#addVideoRawBuffer(byte[])">addVideoRawBuffer</a></span>(byte[] rawBuffer)
        
        <div class="jd-descrdiv">将缓存buffer交还给播放器</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#bufferEmptyCount()">bufferEmptyCount</a></span>()
        
        <div class="jd-descrdiv">获取卡顿次数</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            float
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#bufferEmptyDuration()">bufferEmptyDuration</a></span>()
        
        <div class="jd-descrdiv">获取卡顿时长,单位为秒</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#deselectTrack(int)">deselectTrack</a></span>(int trackIndex)
        
        <div class="jd-descrdiv">根据流索引关闭对应的流, 流索引可通过 <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getTrackInfo()">getTrackInfo()</a></code> 获取</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#enableFastPlayMode(boolean)">enableFastPlayMode</a></span>(boolean enable)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getAudioCachedBytes()">getAudioCachedBytes</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getAudioCachedDuration()">getAudioCachedDuration</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getAudioCachedPackets()">getAudioCachedPackets</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getAudioSessionId()">getAudioSessionId</a></span>()
        
        <div class="jd-descrdiv">获取音频Session ID</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            float
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getBufferTimeMax()">getBufferTimeMax</a></span>()
        
        <div class="jd-descrdiv">获取当前播放器缓存时长的阈值</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getClientIP()">getClientIP</a></span>()
        
        <div class="jd-descrdiv">获取当前使用者的出口IP地址</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getColorFormatName(int)">getColorFormatName</a></span>(int mediaCodecColorFormat)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getCurrentPosition()">getCurrentPosition</a></span>()
        
        <div class="jd-descrdiv">获取当前播放的进度</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getCurrentPts()">getCurrentPts</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getCurrentVideoPts()">getCurrentVideoPts</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getDataSource()">getDataSource</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getDecodedDataSize()">getDecodedDataSize</a></span>()
        
        <div class="jd-descrdiv">获取已解码的数据量</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getDownloadDataSize()">getDownloadDataSize</a></span>()
        
        <div class="jd-descrdiv">获取已下载的数据量</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getDuration()">getDuration</a></span>()
        
        <div class="jd-descrdiv">获取当前多媒体文件的时长,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getLocalDnsIP()">getLocalDnsIP</a></span>()
        
        <div class="jd-descrdiv">获取本地DNS服务器的IP地址</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/ksyun/media/player/MediaInfo.html">MediaInfo</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getMediaInfo()">getMediaInfo</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            Bundle
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getMediaMeta()">getMediaMeta</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            Bitmap
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getScreenShot()">getScreenShot</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getSelectedTrack(int)">getSelectedTrack</a></span>(int trackType)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getServerAddress()">getServerAddress</a></span>()
        
        <div class="jd-descrdiv">获取服务器IP</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            float
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getSpeed()">getSpeed</a></span>()
        
        <div class="jd-descrdiv">获取当前播放速度,1.0f为正常播放速度</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/ksyun/media/player/misc/KSYQosInfo.html">KSYQosInfo</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getStreamQosInfo()">getStreamQosInfo</a></span>()
        
        <div class="jd-descrdiv">获取当前播放器的缓存状态</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getStreamStartTime()">getStreamStartTime</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            <a href="../../../../com/ksyun/media/player/misc/KSYTrackInfo.html">KSYTrackInfo[]</a>
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getTrackInfo()">getTrackInfo</a></span>()
        
        <div class="jd-descrdiv">获取当前播放的多媒体文件的流信息
 须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>成功后调用才有意义</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            static
            
            String
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVersion()">getVersion</a></span>()
        
        <div class="jd-descrdiv">获取播放SDK的版本</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoCachedBytes()">getVideoCachedBytes</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoCachedDuration()">getVideoCachedDuration</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            long
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoCachedPackets()">getVideoCachedPackets</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            float
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoDecodeFramesPerSecond()">getVideoDecodeFramesPerSecond</a></span>()
        
        <div class="jd-descrdiv">获取当前视频解码帧率</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoDecoder()">getVideoDecoder</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoHeight()">getVideoHeight</a></span>()
        
        <div class="jd-descrdiv">获取视频的高度,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            float
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoOutputFramesPerSecond()">getVideoOutputFramesPerSecond</a></span>()
        
        <div class="jd-descrdiv">获取当前视频渲染的帧率</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoSarDen()">getVideoSarDen</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoSarNum()">getVideoSarNum</a></span>()
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            int
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getVideoWidth()">getVideoWidth</a></span>()
        
        <div class="jd-descrdiv">获取视频的宽度,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#isLooping()">isLooping</a></span>()
        
        <div class="jd-descrdiv">Checks whether the MediaPlayer is looping or non-looping.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#isPlayable()">isPlayable</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#isPlaying()">isPlaying</a></span>()
        
        <div class="jd-descrdiv">播放器是否处于播放状态</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#pause()">pause</a></span>()
        
        <div class="jd-descrdiv">暂停播放视频</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync</a></span>()
        
        <div class="jd-descrdiv">准备播放多媒体文件,准备成功后<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>会发出相应回调</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#release()">release</a></span>()
        
        <div class="jd-descrdiv">Releases resources associated with this KSYMediaPlayer object.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#reload(java.lang.String, boolean, com.ksyun.media.player.KSYMediaPlayer.KSYReloadMode)">reload</a></span>(String path, boolean flushBuffer, <a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html">KSYMediaPlayer.KSYReloadMode</a> mode)
        
        <div class="jd-descrdiv">reload视频</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#reload(java.lang.String, boolean)">reload</a></span>(String path, boolean flushBuffer)
        
        <div class="jd-descrdiv">reload视频,默认使用<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html#KSY_RELOAD_MODE_FAST">KSY_RELOAD_MODE_FAST</a></code>模式</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#reset()">reset</a></span>()
        
        <div class="jd-descrdiv">重置播放器,软解情况下会清除屏幕内容
</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#resetListeners()">resetListeners</a></span>()
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#seekTo(long, boolean)">seekTo</a></span>(long msec, boolean accurate)
        
        <div class="jd-descrdiv">快进快退</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#seekTo(long)">seekTo</a></span>(long msec)
        
        <div class="jd-descrdiv">快进快退</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#selectTrack(int)">selectTrack</a></span>(int trackIndex)
        
        <div class="jd-descrdiv">根据流索引开启对应的流, 流索引可通过 <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getTrackInfo()">getTrackInfo()</a></code> 获取</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setBufferSize(int)">setBufferSize</a></span>(int size)
        
        <div class="jd-descrdiv">设置播放器缓存数据的最大值,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setBufferTimeMax(float)">setBufferTimeMax</a></span>(float timeSecond)
        
        <div class="jd-descrdiv">设置播放器缓存数据时长的最大阈值,只对直播有效,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用。该值较大,则主播和观众之间延迟较大,该值较小,则对网络波动更敏感,容易引发卡顿</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(java.io.FileDescriptor)">setDataSource</a></span>(FileDescriptor fd)
        
        <div class="jd-descrdiv">Sets the data source (FileDescriptor) to use.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(java.io.FileDescriptor, long, long)">setDataSource</a></span>(FileDescriptor fd, long offset, long length)
        
        <div class="jd-descrdiv">Sets the data source (FileDescriptor) to use.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(java.lang.String)">setDataSource</a></span>(String path)
        
        <div class="jd-descrdiv">Sets the data source (file-path or http/rtsp URL) to use.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(Context, Uri)">setDataSource</a></span>(Context context, Uri uri)
        
        <div class="jd-descrdiv">Sets the data source as a content Uri.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(Context, Uri, java.util.Map<java.lang.String, java.lang.String>)">setDataSource</a></span>(Context context, Uri uri, Map&lt;String,&nbsp;String&gt; headers)
        
        <div class="jd-descrdiv">Sets the data source as a content Uri.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDataSource(com.ksyun.media.player.misc.IMediaDataSource)">setDataSource</a></span>(<a href="../../../../com/ksyun/media/player/misc/IMediaDataSource.html">IMediaDataSource</a> mediaDataSource)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDecodeMode(com.ksyun.media.player.KSYMediaPlayer.KSYDecodeMode)">setDecodeMode</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDecodeMode.html">KSYMediaPlayer.KSYDecodeMode</a> mode)
        
        <div class="jd-descrdiv">设置播放器的解码类型,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDeinterlaceMode(com.ksyun.media.player.KSYMediaPlayer.KSYDeinterlaceMode)">setDeinterlaceMode</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDeinterlaceMode.html">KSYMediaPlayer.KSYDeinterlaceMode</a> mode)
        
        <div class="jd-descrdiv">设置反交错的模式,须使用点播库方可生效</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDisplay(SurfaceHolder)">setDisplay</a></span>(SurfaceHolder sh)
        
        <div class="jd-descrdiv">Sets the <code><a href="../../../../SurfaceHolder/package-summary.html">SurfaceHolder</a></code> to use for displaying the video portion of
 the media.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setLogEnabled(boolean)">setLogEnabled</a></span>(boolean enable)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setLooping(boolean)">setLooping</a></span>(boolean looping)
        
        <div class="jd-descrdiv">Sets the player to be looping or non-looping.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setMirror(boolean)">setMirror</a></span>(boolean mirror)
        
        <div class="jd-descrdiv">设置视频镜像显示</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setOnAudioPCMAvailableListener(com.ksyun.media.player.KSYMediaPlayer.OnAudioPCMListener)">setOnAudioPCMAvailableListener</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnAudioPCMListener.html">KSYMediaPlayer.OnAudioPCMListener</a> listener)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setOnControlMessageListener(com.ksyun.media.player.KSYMediaPlayer.OnControlMessageListener)">setOnControlMessageListener</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnControlMessageListener.html">KSYMediaPlayer.OnControlMessageListener</a> listener)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setOnVideoTextureListener(com.ksyun.media.player.KSYMediaPlayer.OnVideoTextureListener)">setOnVideoTextureListener</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoTextureListener.html">KSYMediaPlayer.OnVideoTextureListener</a> listener)
        
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setPlayableRanges(long, long)">setPlayableRanges</a></span>(long startTime, long endTime)
        
        <div class="jd-descrdiv">由金山云引入, 设置可播放的范围，仅对点播有效
 调用此接口时, 需注意:
 1.</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setPlayerMute(int)">setPlayerMute</a></span>(int mute)
        
        <div class="jd-descrdiv">设置播放器是否禁音</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            boolean
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setRotateDegree(int)">setRotateDegree</a></span>(int degree)
        
        <div class="jd-descrdiv">设置旋转角度,旋转方向为逆时针</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setScreenOnWhilePlaying(boolean)">setScreenOnWhilePlaying</a></span>(boolean screenOn)
        
        <div class="jd-descrdiv">设置在播放视频时是否保持屏幕常亮
 必须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDisplay(SurfaceHolder)">setDisplay(SurfaceHolder)</a></code>之后调用方可生效</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setSpeed(float)">setSpeed</a></span>(float speed)
        
        <div class="jd-descrdiv">设置播放速度</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setSurface(Surface)">setSurface</a></span>(Surface surface)
        
        <div class="jd-descrdiv">Sets the Surface to be used as the sink for the video portion of
 the media.</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setTimeout(int, int)">setTimeout</a></span>(int prepareTimeout, int readTimeout)
        
        <div class="jd-descrdiv">设置准备和读数据超时阈值,需在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用方可生效</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoOffset(float, float)">setVideoOffset</a></span>(float horizontal, float vertical)
        
        <div class="jd-descrdiv">设置视频的水平和垂直方向的平移量。以手机屏幕中心为原点建立坐标轴,横纵轴坐标各自平行于手机屏幕边缘。归一化处理后,手机屏幕的坐标取值范围为[-1.0, 1.0]
 仅在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT">VIDEO_SCALING_MODE_SCALE_TO_FIT</a></code>模式下本接口方可生效</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoRawDataListener(com.ksyun.media.player.KSYMediaPlayer.OnVideoRawDataListener)">setVideoRawDataListener</a></span>(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a> listener)
        
        <div class="jd-descrdiv">设置获取原始视频数据的监听器</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoRenderingState(int)">setVideoRenderingState</a></span>(int mode)
        
        <div class="jd-descrdiv">设置当前是否由播放器渲染视频内容,与获取视频内容的回调接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a></code>相结合使用</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode</a></span>(int mode)
        
        <div class="jd-descrdiv">设置播放器视频缩放模式</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVolume(float, float)">setVolume</a></span>(float leftVolume, float rightVolume)
        
        <div class="jd-descrdiv">设置当前播放音频,范围为 0.0f -- 1.0f,左右声道的音量建议一致</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setWakeMode(Context, int)">setWakeMode</a></span>(Context context, int mode)
        
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#shouldAutoPlay(boolean)">shouldAutoPlay</a></span>(boolean state)
        
        <div class="jd-descrdiv">必须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用方可生效
 在prepare完成后是否自动开播,默认为</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#softReset()">softReset</a></span>()
        
        <div class="jd-descrdiv">重置播放器,但是不会清除屏幕内容
</div>
  
  </td></tr>


	 
    <tr class=" api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#start()">start</a></span>()
        
        <div class="jd-descrdiv">开始播放视频</div>
  
  </td></tr>


	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#stop()">stop</a></span>()
        
        <div class="jd-descrdiv">停止播放视频</div>
  
  </td></tr>



</table>




<!-- ========== METHOD SUMMARY =========== -->
<table id="promethods" class="jd-sumtable"><tr><th colspan="12">Protected Methods</th></tr>



	 
    <tr class="alt-color api apilevel-" >
        <td class="jd-typecol">
            
            
            
            
            
            void
        </td>
        <td class="jd-linkcol" width="100%">
        <span class="sympad"><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#finalize()">finalize</a></span>()
        
  </td></tr>



</table>





</div><!-- jd-descr (summary) -->

<!-- Details -->








<!-- XML Attributes -->


<!-- Enum Values -->


<!-- Constants -->


<!-- ========= ENUM CONSTANTS DETAIL ======== -->
<h2>Constants</h2>




<a id="KSY_LOG_DEBUG"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_DEBUG
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                3
                (0x00000003)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_DEFAULT"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_DEFAULT
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                1
                (0x00000001)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_ERROR"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_ERROR
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                6
                (0x00000006)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_FATAL"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_FATAL
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                7
                (0x00000007)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_INFO"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_INFO
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                4
                (0x00000004)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_SILENT"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_SILENT
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                8
                (0x00000008)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_UNKNOWN"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_UNKNOWN
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                0
                (0x00000000)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_VERBOSE"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_VERBOSE
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                2
                (0x00000002)
            
        </span>
        </div>
    
    </div>
</div>



<a id="KSY_LOG_WARN"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        KSY_LOG_WARN
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                5
                (0x00000005)
            
        </span>
        </div>
    
    </div>
</div>



<a id="MEDIA_MESSAGE_INFO"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
        static 
        final 
        int
      </span>
        MEDIA_MESSAGE_INFO
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                599
                (0x00000257)
            
        </span>
        </div>
    
    </div>
</div>



<a id="MEDIA_SET_VIDEO_SAR"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
        static 
        final 
        int
      </span>
        MEDIA_SET_VIDEO_SAR
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                10001
                (0x00002711)
            
        </span>
        </div>
    
    </div>
</div>



<a id="SDL_FCC_RV16"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        SDL_FCC_RV16
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>原始视频输出格式为RGB565
</p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                909203026
                (0x36315652)
            
        </span>
        </div>
    
    </div>
</div>



<a id="SDL_FCC_RV32"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        SDL_FCC_RV32
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>原始视频输出格式为RGB8888
</p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                842225234
                (0x32335652)
            
        </span>
        </div>
    
    </div>
</div>



<a id="VIDEO_SCALING_MODE_NOSCALE_TO_FIT"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        VIDEO_SCALING_MODE_NOSCALE_TO_FIT
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>视频缩放模式,拉伸模式,视频完全填满显示窗口,视频与窗口比例不匹配画面会有变形<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                0
                (0x00000000)
            
        </span>
        </div>
    
    </div>
</div>



<a id="VIDEO_SCALING_MODE_SCALE_TO_FIT"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        VIDEO_SCALING_MODE_SCALE_TO_FIT
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>视频缩放模式,填充模式,在视频宽高比例与手机宽高比例不一致时,播放可能留有黑边,具体接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                1
                (0x00000001)
            
        </span>
        </div>
    
    </div>
</div>



<a id="VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
        final 
        int
      </span>
        VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
    </h4>
      <div class="api-level">
        


        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>视频缩放模式,裁剪模式,具体接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setVideoScalingMode(int)">setVideoScalingMode(int)</a></code>
</p></div>

    
        <div class="jd-tagdata">
        <span class="jd-tagtitle">Constant Value: </span>
        <span>
            
                2
                (0x00000002)
            
        </span>
        </div>
    
    </div>
</div>




<!-- Fields -->


<!-- Public ctors -->



<!-- ========= CONSTRUCTOR DETAIL ======== -->
<!-- Protected ctors -->



<!-- ========= METHOD DETAIL ======== -->
<!-- Public methdos -->

<h2>Public Methods</h2>



<a id="_onAudioPCMReady(java.nio.ByteBuffer, long, int, int, int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">_onAudioPCMReady</span>
      <span class="normal">(ByteBuffer buffer, long timestamp, int samplerate, int channels, int fmt)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="addTimedTextSource(java.lang.String)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">addTimedTextSource</span>
      <span class="normal">(String path)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置外挂字幕的路径，播放器会打开并解码外挂字幕</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>path</th>
          <td>外挂字幕路径
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="addVideoRawBuffer(byte[])"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">addVideoRawBuffer</span>
      <span class="normal">(byte[] rawBuffer)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>将缓存buffer交还给播放器</p></div>

    </div>
</div>


<a id="bufferEmptyCount()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">bufferEmptyCount</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取卡顿次数</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>卡顿次数
</li></ul>
  </div>

    </div>
</div>


<a id="bufferEmptyDuration()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        float
      </span>
      <span class="sympad">bufferEmptyDuration</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取卡顿时长,单位为秒</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>卡顿时长
</li></ul>
  </div>

    </div>
</div>


<a id="deselectTrack(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">deselectTrack</span>
      <span class="normal">(int trackIndex)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>根据流索引关闭对应的流, 流索引可通过 <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getTrackInfo()">getTrackInfo()</a></code> 获取</p></div>

    </div>
</div>


<a id="enableFastPlayMode(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">enableFastPlayMode</span>
      <span class="normal">(boolean enable)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getAudioCachedBytes()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getAudioCachedBytes</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getAudioCachedDuration()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getAudioCachedDuration</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getAudioCachedPackets()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getAudioCachedPackets</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getAudioSessionId()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getAudioSessionId</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取音频Session ID</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>音频Session ID
</li></ul>
  </div>

    </div>
</div>


<a id="getBufferTimeMax()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        float
      </span>
      <span class="sympad">getBufferTimeMax</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前播放器缓存时长的阈值</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>播放器缓存时长的阈值
</li></ul>
  </div>

    </div>
</div>


<a id="getClientIP()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        String
      </span>
      <span class="sympad">getClientIP</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前使用者的出口IP地址</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>当前使用者的出口IP地址
</li></ul>
  </div>

    </div>
</div>


<a id="getColorFormatName(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        String
      </span>
      <span class="sympad">getColorFormatName</span>
      <span class="normal">(int mediaCodecColorFormat)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getCurrentPosition()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getCurrentPosition</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前播放的进度</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>当前播放进度, 单位:毫秒
</li></ul>
  </div>

    </div>
</div>


<a id="getCurrentPts()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getCurrentPts</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getCurrentVideoPts()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getCurrentVideoPts</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getDataSource()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        String
      </span>
      <span class="sympad">getDataSource</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getDecodedDataSize()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getDecodedDataSize</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取已解码的数据量</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>已解码的数据量
</li></ul>
  </div>

    </div>
</div>


<a id="getDownloadDataSize()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getDownloadDataSize</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取已下载的数据量</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>已下载的数据量
</li></ul>
  </div>

    </div>
</div>


<a id="getDuration()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getDuration</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前多媒体文件的时长,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>多媒体文件的时长, 单位:毫秒
</li></ul>
  </div>

    </div>
</div>


<a id="getLocalDnsIP()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        String
      </span>
      <span class="sympad">getLocalDnsIP</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取本地DNS服务器的IP地址</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>本地DNS服务器的IP地址
</li></ul>
  </div>

    </div>
</div>


<a id="getMediaInfo()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/ksyun/media/player/MediaInfo.html">MediaInfo</a>
      </span>
      <span class="sympad">getMediaInfo</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getMediaMeta()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        Bundle
      </span>
      <span class="sympad">getMediaMeta</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getScreenShot()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        Bitmap
      </span>
      <span class="sympad">getScreenShot</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getSelectedTrack(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getSelectedTrack</span>
      <span class="normal">(int trackType)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getServerAddress()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        String
      </span>
      <span class="sympad">getServerAddress</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取服务器IP</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>服务器IP
</li></ul>
  </div>

    </div>
</div>


<a id="getSpeed()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        float
      </span>
      <span class="sympad">getSpeed</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前播放速度,1.0f为正常播放速度</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>当前播放速度
</li></ul>
  </div>

    </div>
</div>


<a id="getStreamQosInfo()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/ksyun/media/player/misc/KSYQosInfo.html">KSYQosInfo</a>
      </span>
      <span class="sympad">getStreamQosInfo</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前播放器的缓存状态</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>参见<code><a href="../../../../com/ksyun/media/player/misc/KSYQosInfo.html">KSYQosInfo</a></code>
</li></ul>
  </div>

    </div>
</div>


<a id="getStreamStartTime()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getStreamStartTime</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getTrackInfo()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        <a href="../../../../com/ksyun/media/player/misc/KSYTrackInfo.html">KSYTrackInfo[]</a>
      </span>
      <span class="sympad">getTrackInfo</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前播放的多媒体文件的流信息
 须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>成功后调用才有意义</p></div>

    </div>
</div>


<a id="getVersion()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
        static 
         
         
         
        String
      </span>
      <span class="sympad">getVersion</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取播放SDK的版本</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>播放SDK的版本
</li></ul>
  </div>

    </div>
</div>


<a id="getVideoCachedBytes()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getVideoCachedBytes</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoCachedDuration()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getVideoCachedDuration</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoCachedPackets()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        long
      </span>
      <span class="sympad">getVideoCachedPackets</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoDecodeFramesPerSecond()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        float
      </span>
      <span class="sympad">getVideoDecodeFramesPerSecond</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前视频解码帧率</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>视频解码帧率
</li></ul>
  </div>

    </div>
</div>


<a id="getVideoDecoder()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getVideoDecoder</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoHeight()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getVideoHeight</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取视频的高度,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>视频的高度
</li></ul>
  </div>

    </div>
</div>


<a id="getVideoOutputFramesPerSecond()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        float
      </span>
      <span class="sympad">getVideoOutputFramesPerSecond</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取当前视频渲染的帧率</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>视频渲染帧率
</li></ul>
  </div>

    </div>
</div>


<a id="getVideoSarDen()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getVideoSarDen</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoSarNum()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getVideoSarNum</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="getVideoWidth()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        int
      </span>
      <span class="sympad">getVideoWidth</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>获取视频的宽度,须在<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>发起回调了方可有效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>视频的宽度
</li></ul>
  </div>

    </div>
</div>


<a id="isLooping()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isLooping</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Checks whether the MediaPlayer is looping or non-looping.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true if the MediaPlayer is currently looping, false otherwise
</li></ul>
  </div>

    </div>
</div>


<a id="isPlayable()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isPlayable</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="isPlaying()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">isPlaying</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>播放器是否处于播放状态</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true表示播放器处于播放状态, 反之则否
</li></ul>
  </div>

    </div>
</div>


<a id="pause()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">pause</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>暂停播放视频</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="prepareAsync()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">prepareAsync</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>准备播放多媒体文件,准备成功后<code><a href="../../../../com/ksyun/media/player/IMediaPlayer.OnPreparedListener.html">IMediaPlayer.OnPreparedListener</a></code>会发出相应回调</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="release()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">release</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Releases resources associated with this KSYMediaPlayer object. It is
 considered good practice to call this method when you're done using the
 KSYMediaPlayer. In particular, whenever an Activity of an application is
 paused (its onPause() method is called), or stopped (its onStop() method
 is called), this method should be invoked to release the KSYMediaPlayer
 object, unless the application has a special need to keep the object
 around. In addition to unnecessary resources (such as memory and
 instances of codecs) being held, failure to call this method immediately
 if a KSYMediaPlayer object is no longer needed may also lead to
 continuous battery consumption for mobile devices, and playback failure
 for other applications if no multiple instances of the same codec are
 supported on a device. Even if multiple instances of the same codec are
 supported, some performance degradation may be expected when unnecessary
 multiple instances are used at the same time.
</p></div>

    </div>
</div>


<a id="reload(java.lang.String, boolean, com.ksyun.media.player.KSYMediaPlayer.KSYReloadMode)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">reload</span>
      <span class="normal">(String path, boolean flushBuffer, <a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html">KSYMediaPlayer.KSYReloadMode</a> mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>reload视频</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>path</th>
          <td>视频地址</td>
        </tr>
        <tr>
          <th>flushBuffer</th>
          <td>是否flush播放器中的旧数据</td>
        </tr>
        <tr>
          <th>mode</th>
          <td>reload模式<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html">KSYMediaPlayer.KSYReloadMode</a></code></td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="reload(java.lang.String, boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">reload</span>
      <span class="normal">(String path, boolean flushBuffer)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>reload视频,默认使用<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYReloadMode.html#KSY_RELOAD_MODE_FAST">KSY_RELOAD_MODE_FAST</a></code>模式</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>path</th>
          <td>视频地址</td>
        </tr>
        <tr>
          <th>flushBuffer</th>
          <td>是否flush播放器中的旧数据</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="reset()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">reset</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>重置播放器,软解情况下会清除屏幕内容
</p></div>

    </div>
</div>


<a id="resetListeners()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">resetListeners</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="seekTo(long, boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">seekTo</span>
      <span class="normal">(long msec, boolean accurate)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>快进快退</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>msec</th>
          <td>目标时间点,单位:毫秒</td>
        </tr>
        <tr>
          <th>accurate</th>
          <td>是否进行精准seek</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="seekTo(long)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">seekTo</span>
      <span class="normal">(long msec)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>快进快退</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>msec</th>
          <td>目标时间点,单位:毫秒</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="selectTrack(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">selectTrack</span>
      <span class="normal">(int trackIndex)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>根据流索引开启对应的流, 流索引可通过 <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#getTrackInfo()">getTrackInfo()</a></code> 获取</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>trackIndex</th>
          <td>流索引
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setBufferSize(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setBufferSize</span>
      <span class="normal">(int size)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放器缓存数据的最大值,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>size</th>
          <td>播放器缓存数据的最大值,单位:MB
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setBufferTimeMax(float)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setBufferTimeMax</span>
      <span class="normal">(float timeSecond)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放器缓存数据时长的最大阈值,只对直播有效,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用。该值较大,则主播和观众之间延迟较大,该值较小,则对网络波动更敏感,容易引发卡顿</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>timeSecond</th>
          <td>播放器缓存的最大时长,单位:秒
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(java.io.FileDescriptor)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(FileDescriptor fd)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the data source (FileDescriptor) to use. It is the caller's responsibility
 to close the file descriptor. It is safe to do so as soon as this call returns.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>fd</th>
          <td>the FileDescriptor for the file you want to play</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td>if it is called in an invalid state
</td>
        </tr>  
        <tr>
            <th>IOException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(java.io.FileDescriptor, long, long)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(FileDescriptor fd, long offset, long length)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the data source (FileDescriptor) to use.  The FileDescriptor must be
 seekable (N.B. a LocalSocket is not seekable). It is the caller's responsibility
 to close the file descriptor. It is safe to do so as soon as this call returns.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>fd</th>
          <td>the FileDescriptor for the file you want to play</td>
        </tr>
        <tr>
          <th>offset</th>
          <td>the offset into the file where the data to be played starts, in bytes</td>
        </tr>
        <tr>
          <th>length</th>
          <td>the length in bytes of the data to be played</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td>if it is called in an invalid state
</td>
        </tr>  
        <tr>
            <th>IOException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(java.lang.String)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(String path)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the data source (file-path or http/rtsp URL) to use.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>path</th>
          <td>the path of the file, or the http/rtsp URL of the stream you
             want to play</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td>if it is called in an invalid state
                               <p>
                               <p>
                               When <code>path</code> refers to a local file, the file may
                               actually be opened by a process other than the calling
                               application. This implies that the pathname should be an
                               absolute path (as any other process runs with unspecified
                               current working directory), and that the pathname should
                               reference a world-readable file.
</td>
        </tr>  
        <tr>
            <th>IOException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>  
        <tr>
            <th>SecurityException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(Context, Uri)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(Context context, Uri uri)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the data source as a content Uri.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>context</th>
          <td>the Context to use when resolving the Uri</td>
        </tr>
        <tr>
          <th>uri</th>
          <td>the Content URI of the data you want to play</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td>if it is called in an invalid state
</td>
        </tr>  
        <tr>
            <th>IOException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>  
        <tr>
            <th>SecurityException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(Context, Uri, java.util.Map<java.lang.String, java.lang.String>)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(Context context, Uri uri, Map&lt;String,&nbsp;String&gt; headers)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the data source as a content Uri.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>context</th>
          <td>the Context to use when resolving the Uri</td>
        </tr>
        <tr>
          <th>uri</th>
          <td>the Content URI of the data you want to play</td>
        </tr>
        <tr>
          <th>headers</th>
          <td>the headers to be sent together with the request for the data
                Note that the cross domain redirection is allowed by default, but that can be
                changed with key/value pairs through the headers parameter with
                "android-allow-cross-domain-redirect" as the key and "0" or "1" as the value
                to disallow or allow cross domain redirection.</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td>if it is called in an invalid state
</td>
        </tr>  
        <tr>
            <th>IOException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>  
        <tr>
            <th>SecurityException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDataSource(com.ksyun.media.player.misc.IMediaDataSource)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDataSource</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/misc/IMediaDataSource.html">IMediaDataSource</a> mediaDataSource)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalArgumentException</td>
            <td></td>
        </tr>  
        <tr>
            <th>SecurityException</td>
            <td></td>
        </tr>  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDecodeMode(com.ksyun.media.player.KSYMediaPlayer.KSYDecodeMode)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDecodeMode</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDecodeMode.html">KSYMediaPlayer.KSYDecodeMode</a> mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放器的解码类型,须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mode</th>
          <td>参见<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDecodeMode.html">KSYMediaPlayer.KSYDecodeMode</a></code>
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDeinterlaceMode(com.ksyun.media.player.KSYMediaPlayer.KSYDeinterlaceMode)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDeinterlaceMode</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDeinterlaceMode.html">KSYMediaPlayer.KSYDeinterlaceMode</a> mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置反交错的模式,须使用点播库方可生效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mode</th>
          <td>可参见<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.KSYDeinterlaceMode.html">KSYMediaPlayer.KSYDeinterlaceMode</a></code>
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setDisplay(SurfaceHolder)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setDisplay</span>
      <span class="normal">(SurfaceHolder sh)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the <code><a href="../../../../SurfaceHolder/package-summary.html">SurfaceHolder</a></code> to use for displaying the video portion of
 the media.
 <p>
 Either a surface holder or surface must be set if a display or video sink
 is needed. Not calling this method or <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setSurface(Surface)">setSurface(Surface)</a></code> when
 playing back a video will result in only the audio track being played. A
 null surface holder or surface will result in only the audio track being
 played.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>sh</th>
          <td>the SurfaceHolder to use for video display
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setLogEnabled(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setLogEnabled</span>
      <span class="normal">(boolean enable)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="setLooping(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setLooping</span>
      <span class="normal">(boolean looping)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the player to be looping or non-looping.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>looping</th>
          <td>whether to loop or not
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setMirror(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">setMirror</span>
      <span class="normal">(boolean mirror)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置视频镜像显示</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mirror</th>
          <td>true和false分别指镜像显示和正常显示</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true和false分别指设置镜像成功或失败
</li></ul>
  </div>

    </div>
</div>


<a id="setOnAudioPCMAvailableListener(com.ksyun.media.player.KSYMediaPlayer.OnAudioPCMListener)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setOnAudioPCMAvailableListener</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnAudioPCMListener.html">KSYMediaPlayer.OnAudioPCMListener</a> listener)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="setOnControlMessageListener(com.ksyun.media.player.KSYMediaPlayer.OnControlMessageListener)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setOnControlMessageListener</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnControlMessageListener.html">KSYMediaPlayer.OnControlMessageListener</a> listener)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="setOnVideoTextureListener(com.ksyun.media.player.KSYMediaPlayer.OnVideoTextureListener)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setOnVideoTextureListener</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoTextureListener.html">KSYMediaPlayer.OnVideoTextureListener</a> listener)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="setPlayableRanges(long, long)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setPlayableRanges</span>
      <span class="normal">(long startTime, long endTime)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>由金山云引入, 设置可播放的范围，仅对点播有效
 调用此接口时, 需注意:
 1. startTime和endTime中必有一值大于0
 2. 当endTime大于0时, 其值必须大于startTime
 当以上任一条件不满足时会有IllegalArgumentException抛出</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>startTime</th>
          <td>起始播放时间点, 单位为毫秒(MS)</td>
        </tr>
        <tr>
          <th>endTime</th>
          <td>结束播放时间点, 单位为毫秒(MS)
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setPlayerMute(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setPlayerMute</span>
      <span class="normal">(int mute)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放器是否禁音</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mute</th>
          <td>1和0分别指播放禁音和不禁音
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setRotateDegree(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        boolean
      </span>
      <span class="sympad">setRotateDegree</span>
      <span class="normal">(int degree)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置旋转角度,旋转方向为逆时针</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>degree</th>
          <td>旋转角度,只能为 0/90/180/270 中的某个值</td>
        </tr>
      </table>
  </div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Returns</h5>
      <ul class="nolist"><li>true表示设置成功, false则反之
</li></ul>
  </div>

    </div>
</div>


<a id="setScreenOnWhilePlaying(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setScreenOnWhilePlaying</span>
      <span class="normal">(boolean screenOn)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置在播放视频时是否保持屏幕常亮
 必须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDisplay(SurfaceHolder)">setDisplay(SurfaceHolder)</a></code>之后调用方可生效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>screenOn</th>
          <td>true保持屏幕常量,false则反之
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setSpeed(float)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setSpeed</span>
      <span class="normal">(float speed)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放速度</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>speed</th>
          <td>目标播放速度
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setSurface(Surface)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setSurface</span>
      <span class="normal">(Surface surface)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>Sets the Surface to be used as the sink for the video portion of
 the media. This is similar to <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setDisplay(SurfaceHolder)">setDisplay(SurfaceHolder)</a></code>, but
 does not support <code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#setScreenOnWhilePlaying(boolean)">setScreenOnWhilePlaying(boolean)</a></code>. Setting a
 Surface will un-set any Surface or SurfaceHolder that was previously set.
 A null surface will result in only the audio track being played.
 <p>
 If the Surface sends frames to a <code><a href="../../../../SurfaceTexture/package-summary.html">SurfaceTexture</a></code>, the timestamps
 returned from <code><a href="../../../../SurfaceTexture/package-summary.html">SurfaceTexture</a></code> will have an
 unspecified zero point. These timestamps cannot be directly compared
 between different media sources, different instances of the same media
 source, or multiple runs of the same program. The timestamp is normally
 monotonically increasing and is unaffected by time-of-day adjustments,
 but it is reset when the position is set.</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>surface</th>
          <td>The Surface to be used for the video portion of the
                media.
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setTimeout(int, int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setTimeout</span>
      <span class="normal">(int prepareTimeout, int readTimeout)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置准备和读数据超时阈值,需在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用方可生效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>prepareTimeout</th>
          <td>准备超时阈值,即播放器在建立链接、解析流媒体信息的超时阈值</td>
        </tr>
        <tr>
          <th>readTimeout</th>
          <td>读数据超时阈值
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setVideoOffset(float, float)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVideoOffset</span>
      <span class="normal">(float horizontal, float vertical)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置视频的水平和垂直方向的平移量。以手机屏幕中心为原点建立坐标轴,横纵轴坐标各自平行于手机屏幕边缘。归一化处理后,手机屏幕的坐标取值范围为[-1.0, 1.0]
 仅在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT">VIDEO_SCALING_MODE_SCALE_TO_FIT</a></code>模式下本接口方可生效</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>horizontal</th>
          <td>水平方向的平移量,范围为 -1.0至1.0,大于0表示水平向右移动,反之则水平向左移动</td>
        </tr>
        <tr>
          <th>vertical</th>
          <td>垂直方向的平移量,范围为 -1.0至1.0,大于0表示垂直向上移动,反之则垂直向下移动
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setVideoRawDataListener(com.ksyun.media.player.KSYMediaPlayer.OnVideoRawDataListener)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVideoRawDataListener</span>
      <span class="normal">(<a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a> listener)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置获取原始视频数据的监听器</p></div>

    </div>
</div>


<a id="setVideoRenderingState(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVideoRenderingState</span>
      <span class="normal">(int mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置当前是否由播放器渲染视频内容,与获取视频内容的回调接口<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.OnVideoRawDataListener.html">KSYMediaPlayer.OnVideoRawDataListener</a></code>相结合使用</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mode</th>
          <td>1和0分别指让播放器渲染和不渲染视频内容
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setVideoScalingMode(int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVideoScalingMode</span>
      <span class="normal">(int mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置播放器视频缩放模式</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>mode</th>
          <td>播放器缩放模式,可参见<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT">VIDEO_SCALING_MODE_SCALE_TO_FIT</a></code>,<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING">VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING</a></code>和<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#VIDEO_SCALING_MODE_NOSCALE_TO_FIT">VIDEO_SCALING_MODE_NOSCALE_TO_FIT</a></code>
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setVolume(float, float)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setVolume</span>
      <span class="normal">(float leftVolume, float rightVolume)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>设置当前播放音频,范围为 0.0f -- 1.0f,左右声道的音量建议一致</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Parameters</h5>
      <table class="jd-tagtable">
        <tr>
          <th>leftVolume</th>
          <td>左声道音量</td>
        </tr>
        <tr>
          <th>rightVolume</th>
          <td>右声道音量
</td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="setWakeMode(Context, int)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">setWakeMode</span>
      <span class="normal">(Context context, int mode)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>

    </div>
</div>


<a id="shouldAutoPlay(boolean)"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">shouldAutoPlay</span>
      <span class="normal">(boolean state)</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>必须在<code><a href="../../../../com/ksyun/media/player/KSYMediaPlayer.html#prepareAsync()">prepareAsync()</a></code>之前调用方可生效
 在prepare完成后是否自动开播,默认为</p></div>

    </div>
</div>


<a id="softReset()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">softReset</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>重置播放器,但是不会清除屏幕内容
</p></div>

    </div>
</div>


<a id="start()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">start</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>开始播放视频</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>


<a id="stop()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        public 
         
         
         
         
        void
      </span>
      <span class="sympad">stop</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p>停止播放视频</p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>IllegalStateException</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>





<!-- ========= METHOD DETAIL ======== -->

<h2>Protected Methods</h2>



<a id="finalize()"></a>

<div class="jd-details api apilevel-"> 
    <h4 class="jd-details-title">
      <span class="normal">
        protected 
         
         
         
         
        void
      </span>
      <span class="sympad">finalize</span>
      <span class="normal">()</span>
    </h4>
      <div class="api-level">
        <div>

</div>
        
  

      </div>
    <div class="jd-details-descr">
      
  <div class="jd-tagdata jd-tagdescr"><p></p></div>
  <div class="jd-tagdata">
      <h5 class="jd-tagtitle">Throws</h5>
      <table class="jd-tagtable">  
        <tr>
            <th>Throwable</td>
            <td></td>
        </tr>
      </table>
  </div>

    </div>
</div>





<!-- ========= END OF CLASS DATA ========= -->
<a id="navbar_top"></a>

<div id="footer">
Generated by <a href="http://code.google.com/p/doclava/">Doclava</a>.
</div> <!-- end footer -->

</div> <!-- jd-content -->

</div><!-- end doc-content -->

</div> <!-- end body-content --> 

<script type="text/javascript">
init(); /* initialize doclava-developer-docs.js */
</script>

</body>
</html>
